package com.jinzhi.jzweb.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.BaseDao;
import com.jinzhi.jzweb.domain.OrganizationNewsDO;
import com.jinzhi.jzweb.pojo.ExportStatisticsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 机构信息表
 * </pre>
 * <small> 2020-02-24 21:00:11 | lance</small>
 */
public interface OrganizationNewsDao extends BaseDao<OrganizationNewsDO> {
    List<Map<Object,Object>> selByOrgId();
    Integer selMaxOrgNum();

    List<Map<Object,Object>> selOrgList();

    List<Map<Object,Object>> selCerOrg(@Param("profileId") String profileId,@Param("name") String name);

    List<Map<Object,Object>> selCerOrgAll(@Param("profileId") String profileId);

    List<Long> selOrgProvince(@Param("province") String province);

    Long selOrgCadreId(Map map);

    List<OrganizationNewsDO> findPageList(Page<OrganizationNewsDO> page, Map map);

    List<ExportStatisticsVo> selOrgExportStaList(Map map);

    List<Map> selOrgExportUnit(Map map);


    List<OrganizationNewsDO> organizationsListX();

    //修改成阿里云OSS路径
    int updateorganizationsX(@Param("cachet") String cachet, @Param("id") String id);

    //查询机构信息
    List<Map> selmechanismList();
}
